package com.qf.fmmall.controller;

import com.qf.fmmall.websocket.WebSocketServer;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("pay")
@CrossOrigin
public class PayController {

    @RequestMapping("notify")
    public void notifyOK(String orderId){
        WebSocketServer.sendMsg(orderId,"1");
    }
}
